﻿using SuperX.Common.Object;
using System.Collections.Generic;

namespace SuperX.WebSocketService
{
    public class WebSocketConfig : BasicObject
    {
        private WebSocketServerSide _socketServer;

        /// <summary>
        /// 服务端配置
        /// </summary>
        public WebSocketServerSide SocketServer
        {
            get => _socketServer ?? (_socketServer = new WebSocketServerSide());
            set => _socketServer = value;
        }

        private Dictionary<string, bool> _tagsKey;

        public Dictionary<string, bool> TagsKey
        {
            get => _tagsKey ?? (_tagsKey = new Dictionary<string, bool>());
            set => _tagsKey = value;
        }
    }

    public class WebSocketServerSide
    {
        public string IP { get; set; }
        public int Port { get; set; }
    }
}